/**
 * 
 */
package com.training.file;

import java.io.File;
import java.io.IOException;

/**
 * @author uswvt9e
 *
 */
public class BasicFile {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		 
		
		File file = new File("C:\\Anjali\\work\\teacher1.ser");
		 
		
		if(file.exists())
			
		{
			System.out.println(file.getAbsolutePath());
		}
		else
		{
			file.createNewFile();
		}
		
		
		 
		
		

		if(file.isDirectory())
		{
			System.out.println("Directory ");
		}
		else {
			System.out.println("NOT A Directory");
		}
	}

}
